package org.chench.extra.test.servletcontainer.vo;

import java.util.Date;
import java.util.List;

/**
 * 复杂对象
 * @author: nuccch2010@163.com
 * @desc: org.chench.extra.test.servletcontainer.vo.ComplexObject
 * @date: 2020/3/29 22:35
 */
public class ComplexObject {
    private String name = null;
    private Integer type = -1;
    private Long parent = null;
    private List<Object> children = null;
    private Date ctime = null;
    private Date mtime = null;
    private Double price = null;
    private String unit = null;

    public ComplexObject(String name, Integer type, Long parent, List<Object> children, Date ctime, Date mtime, Double price, String unit) {
        this.name = name;
        this.type = type;
        this.parent = parent;
        this.children = children;
        this.ctime = ctime;
        this.mtime = mtime;
        this.price = price;
        this.unit = unit;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Long getParent() {
        return parent;
    }

    public void setParent(Long parent) {
        this.parent = parent;
    }

    public List<Object> getChildren() {
        return children;
    }

    public void setChildren(List<Object> children) {
        this.children = children;
    }

    public Date getCtime() {
        return ctime;
    }

    public void setCtime(Date ctime) {
        this.ctime = ctime;
    }

    public Date getMtime() {
        return mtime;
    }

    public void setMtime(Date mtime) {
        this.mtime = mtime;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }
}
